package com.qfedu.video.service.impl;

import com.qfedu.video.entry.Subject;
import com.qfedu.video.mapper.SubjectMapper;
import com.qfedu.video.service.SubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author yanzhenwei
 * @date 2021-07-14 17:10
 */
@Service
public class SubjectServiceImpl implements SubjectService {

    @Autowired
    SubjectMapper subjectMapper;

    public Subject getSubjectById(int subjectId) {
        return subjectMapper.selectByPrimaryKey(subjectId);
    }
}
